package com.wosai.medical.hospital.demo.controller.register.request;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
 * @desc
 * @auther 韦湘平
 * @date 2020/2/29 9:19 下午
 */

@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("发起挂号请求")
public class PreRegisterReq implements Serializable {
    private String patientCode;
//    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private String visitDate;
    private String deptCode;
    private String doctorCode;
    private Integer type;
    private String spOrderCode;
//    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private String spCreateTime;
    private Schedule schedule;

    @Data
    @Builder
    @NoArgsConstructor
    @AllArgsConstructor
    public static class Schedule {
        private String id;
        private String timeFlag;
        private String beginTime;
        private String endTime;

    }
}
